package com.recharge.common.util;

import org.apache.poi.ss.formula.functions.T;

public class TestMain {

    public static void main(String[] args) {
        Thread[] threads = new Thread[100];
        for(int i = 0;i < 100; i++) {
            threads[i] = new Thread(new TestThread());
            threads[i].start();

        }
        for(int i = 0;i < 100; i++) {
            try {
                threads[i].join();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }

}

class TestThread implements Runnable {

    public void run() {
        System.out.println(Thread.currentThread().getName());
        try {
            Thread.sleep(13000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
